package com.foreknow.dao;

import com.foreknow.model.Business;

import java.sql.SQLException;
import java.util.List;

public interface BusinessDao {
    /**
     * 添加商家信息
     * @return
     * @throws SQLException
     */
    public boolean bSave(Business business) throws SQLException;

    /**
     * 删除
     * @param bid
     * @return
     * @throws SQLException
     */
    public boolean bDelete(int bid) throws SQLException;

    /**
     * 修改
     * @param bid
     * @return
     * @throws SQLException
     */
    public int bUpdate(Business business,int bid) throws SQLException;

    /**
     * 查询所有商家信息
     * @param business
     * @return
     * @throws SQLException
     */
    public List<Object> bQueryAll(Business business) throws SQLException;

    /**
     * 根据名称查询
     * @param bName
     * @return
     * @throws SQLException
     */
    public List<Object> bQueryById(String bName) throws SQLException;
}
